# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>

pkgname=kak-lsp
pkgver=14.2.0
pkgrel=1
pkgdesc='Kakoune Language Server Protocol Client'
arch=('loong64' 'x86_64')
url='https://github.com/kak-lsp/kak-lsp'
license=('custom:unlicense')
depends=('kakoune')
makedepends=('rust')
optdepends=(
    'bash-language-server: language server for Bash'
    'gopls: language server for Go'
    'haskell-language-server: language server for Haskell'
    'lua-language-server: language server for Lua'
    'python-lsp-server: language server for Python'
    'rust-analyzer: language server for Rust'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ul/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('b81ba87bc8d6896041b96aa67b58011c23490fc9fdb47d1c89f176884b504fee')

build() {
    cd "${pkgname}-${pkgver}"
    make
}

package() {
    cd "${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
}

# vim:set ts=4 sw=4 et:
